package org.example;
import java.util.Random;

public class CalculationSystem_V01 {
    public static void main(String[] args) {
        Random random = new Random();
        System.out.println("加减法口算练习系统-v0.1");
        for (int i = 1; i <= 50; i++) {
            int a = random.nextInt(100) + 1; // 1-100随机数
            int b = random.nextInt(100) + 1;
            char op = random.nextBoolean() ? '+' : '-'; // 随机选择加减
            System.out.printf("%d. %d %c %d = ?\n", i, a, op, b);
        }
    }
}